In [ ]:
# Start by importing Pandas (CLARIFICATION: from python, not from south central China)
In [ ]:
# Create a Series of three numbers: 10, 20 and 10.
In [ ]:
# Create a Series of three objects: 'red, 'blue', 'red'
In [ ]:
# Create an empty DataFrame, called 'df'.
In [ ]:
# Create a new column on the dataframe, and assign it the first Series you created.
In [ ]:
# Create another column on the dataframe, and assign it the second Series you created.
In [ ]:
# Read the 'avengers.csv" into a DataFrame, called 'avengers'.
# The path the file is '../data/avengers.csv"
In [ ]:
# Show the first 5 rows of the DataFrame.
In [ ]:
# Show the first 20 rows of the DataFrame.
# Read the Pandas documentation for '.head()' to learn how.
In [ ]:
# Show the last 5 rows of the DataFrame.
In [ ]:
# Show the shape of the DataFrame.
In [ ]:
# Show the data types of the DataFrame
In [ ]:
# Set the index of the DataFrame as 'Years since joining'.
In [ ]:
# Sort the index of the DataFrame as descending.
# Read the Pandas documentation for 'sort_index()' to learn how.
In [ ]:
# Reset the index of the DataFrame.